<?php
session_start();
unset($_SESSION["aid"]);
unset($_SESSION["cookie_chk"]["a_m"]);
unset($_SESSION["cookie_chk"]["a_n"]);
unset($_COOKIE["a_m"]);
unset($_COOKIE["a_n"]);
$admin_url=str_replace(basename($_SERVER["PHP_SELF"]), "", $_SERVER["PHP_SELF"]);
header("location: $admin_url");
?>